<template>
  <footer>
    <div @click="handleAlert">
      <p class="iconfont icon-kefu"></p>
      <p class="txt">客服</p>
    </div>
    <div class="buy">
        <van-button type="success" size="large" disabled color="#7654FF">待开售</van-button>
    </div>
  </footer>
</template>
<script>
import { Dialog } from "vant";

export default {
  methods: {
    handleAlert() {
      Dialog.alert({
        message: "人工客服请拨打:18888880988",
      }).then(() => {
        // on close
      });
    },
  },
};
</script>
<style lang="scss" scoped>
footer{
    position: fixed;
    bottom: 0;
    left: 0;
    height:56px ;
    display: flex;
    width: 100%;
    margin-left: 8px;
    padding-right: 8px;
}
div{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    text-align: center;
    justify-content: center;
    margin-right: 4px;

 
   .icon-kefu{
    color: #7654FF;
    font-size: 20px;
    }

}
.buy{
    flex: 1;
}
</style>
